package cn.fly.blog.common.rest;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCode {

    UNEXPECT_ERROR(-1, "未预知异常"),
    SUCCESS(0, null),
    ;

    @JsonValue
    int code;

    String msgPattern;
}
